<%@ page language='java' contentType='text/html; charset=UTF-8' pageEncoding='UTF-8' %>
<%@ taglib uri='ctp-tag' prefix='ctp' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <title></title>

        <ctp:include items='public,validator,borderlayout,panel,label,tablelayout,button,groupbox,image,message_ex'/>
       	<script type="text/javascript" src="<ctp:out name='fullPath'/>js/changeskins.js"></script>
		<link href="<ctp:out name='fullPath' />css/skins/standard/ctp-common.css" rel="stylesheet" type="text/css" />
        <ctp:if test="errRetPath == null">
  		<ctp:set name="errRetPath" value="request.getParameter('errRetPath')"/>
  		</ctp:if>
		<ctp:set name="errorMsg" value="request.getParameter('errorMsg')"/>
        <script type='text/javascript' kind='variant'>

            var panel1;
            var showLayout,detailsLayout;
            var showGroupbox,detailGroupbox;
        </script>
        <script type='text/javascript' kind='event'>
			var msg,ButtomErrorCode,ButtomMsg,ErrorMsg,Exception,ExceptionMsg,ExceptionStackMsg,ErrRetPath,second=3,flag=true;;
			try{
				msg={
						"channel4ctp-0032":"在执行过程中发生错误:请求中没有包含会话ID. Error: request without session ID",
						"channel4ctp-0033":"在执行过程中发生错误:会话管理器为空. Error: session controller is null",
						"channel4ctp-0034":"会话超时,请重新登陆. Session timeout, please retry login"				
				}
				var qstr=location.search.split("=")
				Exception=qstr[1];
				ButtomErrorCode=qstr[1];
				ButtomMsg=msg[ButtomErrorCode];
				ErrorMsg='';
				ErrRetPath='';	
				}
				catch(e){
				ButtomErrorCode='Sorry!There is no error code!';
				ButtomMsg='Sorry!There is no error message!';
				}
						
        </script>
        <script type='text/javascript' kind='ui'>
	
            $(window).load(function(){
            	var label1=new ctp.ui.label({
			  	    id: 'label1',
					width: '300px',
					textAlign: 'left',
					text: "您的会话已超时，可进行下列操作。<br/>session timeout,please relogin.<br/><br/><br/><br/>"				   
			     });
            	var label2=new ctp.ui.label({
			  	    id: 'label2',
					width: '300px',
					textAlign: 'left',
					text: "<br/><br/><div style='font-size:18px;font-weight:blod'>超时提示(timeout notice!)</div>"				   
			     });
            	var label3=new ctp.ui.label({
			  	    id: 'label3',
					width: '300px',
					textAlign: 'left',
					text: "<br/><br/><br/><br/>"				   
			     });
            	var image1 = new ctp.ui.image({
                    id: 'image1',
                    width: '70px',
                    height:'70px',
                    hasBorder:false,
                    imgSrc: '<ctp:out name="fullPath"/>images/public/notice.png'
                });
            	var button1=new ctp.ui.button({
                    id: 'button1',
                    text: "<div style='font-weight:blod'>登陆(Login)</div>",
                    width: '90px',
                    onClick: function(){
						top.location.href='index.jsp';
                    }
                });
                  var button2=new ctp.ui.button({
                    id: 'button2',
                    text: '退出(Exit)',
                    width: '90px',
                    onClick: function(){
						top.window.close();
                    }
                });
				
				 showLayout = new ctp.ui.tablelayout({
                    id: 'showLayout',
                    width: '95%',
                    cols: 2,
                    align: 'center',
                    colsWidth:['95px','100%'],
                    colSpace: 2,
                    items: [[{element: label3}],
                            [{element: image1},{element:label2}],
                            [{colspan: 2,element: label1}],
                            [{element: button1},{element: button2}]]
                
                });
            	panel1 = new ctp.ui.panel({
                    id: 'panel1',
                    style: 'none',
                    width: '80%',
                    height: 'auto',
					items: [showLayout],
                    renderTo: 'container'
                });
                $("#_ctp_panel_content_panel1").css({"margin-left":"100px"});
			    });
        </script>
    </head>
    <body>
    <br/>
    <div id="container" style="width:100%;height:auto;"></div>
  	<ctp:if test="errRetPath!=null && errRetPath!=''">
  		<form name="returnForm" method="post" action="<ctp:out name="errRetPath"/>">
  		</form>
  	</ctp:if>
    </body>
</html>
